/**
 * 
 */
package tests;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import business.Aluno;
import business.AreaCientifica;
import business.CalendarDate;
import business.Departamento;
import business.Disciplina;
import business.Inicial;
import business.Inscricao;
import business.Professor;
import business.Seccao;

/**
 * @author HibridO
 * 
 */
public class Professor_Test {
	static Professor p;
	static Aluno a,a2;
	static Disciplina d;
	static Inscricao i,i2;
	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		/*p = new Professor("Ze", new CalendarDate(12, 2, 1980), "email",
				Professor.GrauAcademico.doutor, Professor.Categoria.assistente,
				0, "c123", new Seccao("Info", new Departamento("DCTI")));
		d = new Disciplina("Engenharia de SW", null, new AreaCientifica("Ciencias da Computacao"), p, null);
		//a = new Aluno("Mariozinho", new CalendarDate(2, 3, 1989), "email", 24492);
		//i = new Inscricao(a, d, null, null, 20);
		//i2= new Inscricao(a2, d, null, null, 20);
		//a2 = new Aluno("asd", new CalendarDate(2, 3, 1989), "email", 233);
		*/
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	/**
	 * Test method for {@link business.Professor#objectos()}.
	 */
	@Test
	public void testObjectos() {
		Inicial.open("data/phenix_B.cmd");
		Inicial.infoState();
		//fail("Not yet implemented");
	}

	/**
	 * Test method for
	 * {@link business.Professor#Professor(String, CalendarDate, String, GrauAcademico, Categoria, int, String, Seccao)}
	 * .
	 */
	@Test
	public void testProfessor() {
		//fail("Not yet implemented");
	}

	/**
	 * Test method for {@link business.Professor#getGrau()}.
	 */
	@Test
	public void testGetGrau() {
		//fail("Not yet implemented");
	}

	/**
	 * Test method for {@link business.Professor#getNivel()}.
	 */
	@Test
	public void testGetNivel() {
		//fail("Not yet implemented");
	}

	/**
	 * Test method for {@link business.Professor#getExtensao()}.
	 */
	@Test
	public void testGetExtensao() {
		//fail("Not yet implemented");
	}

	/**
	 * Test method for {@link business.Professor#getGabinete()}.
	 */
	@Test
	public void testGetGabinete() {
		//fail("Not yet implemented");
	}

	/**
	 * Test method for
	 * {@link business.Professor#setGrau(business.Professor.GrauAcademico)}.
	 */
	@Test
	public void testSetGrau() {
		//fail("Not yet implemented");
	}

	/**
	 * Test method for {@link business.Professor#setNivel(business.Professor.Categoria)}.
	 */
	@Test
	public void testSetNivel() {
		//fail("Not yet implemented");
	}

	/**
	 * Test method for {@link business.Professor#setExtensao(int)}.
	 */
	@Test
	public void testSetExtensao() {
		//fail("Not yet implemented");
	}

	/**
	 * Test method for {@link business.Professor#setGabinete(java.lang.String)}.
	 */
	@Test
	public void testSetGabinete() {
		//fail("Not yet implemented");
	}

	/**
	 * Test method for
	 * {@link business.Professor#lancaResultado(business.Disciplina, business.Aluno, int)}.
	 */
	@Test
	public void testLancaResultado() {
		Aluno a = Aluno.objectos().iterator().next();
		Disciplina d = Disciplina.objectos().iterator().next();
		Professor p = Professor.objectos().iterator().next();
		p.lancaResultado(d, a, 20);
	}

	/**
	 * Test method for {@link business.Professor#getSeccao()}.
	 */
	@Test
	public void testGetSeccao() {
		//fail("Not yet implemented");
	}

	/**
	 * Test method for {@link business.Professor#setSeccao(business.Seccao)}.
	 */
	@Test
	public void testSetSeccao() {
		//fail("Not yet implemented");
	}

}
